#ifndef __SUBSYSTEM_CRAFING_TABLE_BLOCK_BEHAVIOR_H__
#define __SUBSYSTEM_CRAFING_TABLE_BLOCK_BEHAVIOR_H__

#include "SubsystemBlockBehavior.hpp"

using namespace PocketSurvival::Engine;

namespace PocketSurvival
{
    class SubsystemBlockEntities;

    class SubsystemCraftingTableBlockBehavior : public SubsystemBlockBehavior
    {
    protected:
        SubsystemBlockEntities *m_subsystemBlockEntities;

    public:
        SubsystemCraftingTableBlockBehavior();
        
        virtual void onBlockAdded(int32_t value, int32_t oldValue, int32_t x, int32_t y, int32_t z) override;
		virtual void onBlockRemoved(int32_t value, int32_t oldValue, int32_t x, int32_t y, int32_t z) override;
        virtual bool onInteract(const TerrainRaycastResult &raycastResult, ComponentMiner *componentMiner) override;

        virtual const std::string& getName() const override;
        virtual void load(const nlohmann::json& json) override;
    };
}

#endif